/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.menosehmais.framework.business;

import br.com.menosehmais.framework.exception.BusinessException;
import br.com.menosehmais.framework.persistence.DomainObject;
import java.util.List;

/**
 *
 * @author Rafael Quintino Gomes Rosa
 */
public interface ICrudBusinessObject<DO extends DomainObject> extends IBusinessObject {

    void delete(DO domainObject)throws BusinessException;

    List<DO> findAll();

    List<DO> findAll(DO domainObject);

    DO insert(DO domainObject);

    DO selectById(String id);

    DO update(DO domainObject) throws BusinessException;

}
